package com.ruoyi.project.propertySystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.propertySystem.mapper.InspectFormworkMapper;
import com.ruoyi.project.propertySystem.domain.InspectFormwork;
import com.ruoyi.project.propertySystem.service.IInspectFormworkService;

/**
 * 巡检分类模板Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-01-18
 */
@Service
public class InspectFormworkServiceImpl implements IInspectFormworkService 
{
    @Autowired
    private InspectFormworkMapper inspectFormworkMapper;

    /**
     * 查询巡检分类模板
     * 
     * @param id 巡检分类模板ID
     * @return 巡检分类模板
     */
    @Override
    public InspectFormwork selectInspectFormworkById(Long id)
    {
        return inspectFormworkMapper.selectInspectFormworkById(id);
    }

    /**
     * 查询巡检分类模板列表
     * 
     * @param inspectFormwork 巡检分类模板
     * @return 巡检分类模板
     */
    @Override
    public List<InspectFormwork> selectInspectFormworkList(InspectFormwork inspectFormwork)
    {
        return inspectFormworkMapper.selectInspectFormworkList(inspectFormwork);
    }

    /**
     * 新增巡检分类模板
     * 
     * @param inspectFormwork 巡检分类模板
     * @return 结果
     */
    @Override
    public int insertInspectFormwork(InspectFormwork inspectFormwork)
    {
        return inspectFormworkMapper.insertInspectFormwork(inspectFormwork);
    }

    /**
     * 修改巡检分类模板
     * 
     * @param inspectFormwork 巡检分类模板
     * @return 结果
     */
    @Override
    public int updateInspectFormwork(InspectFormwork inspectFormwork)
    {
        return inspectFormworkMapper.updateInspectFormwork(inspectFormwork);
    }

    /**
     * 批量删除巡检分类模板
     * 
     * @param ids 需要删除的巡检分类模板ID
     * @return 结果
     */
    @Override
    public int deleteInspectFormworkByIds(Long[] ids)
    {
        return inspectFormworkMapper.deleteInspectFormworkByIds(ids);
    }

    /**
     * 删除巡检分类模板信息
     * 
     * @param id 巡检分类模板ID
     * @return 结果
     */
    @Override
    public int deleteInspectFormworkById(Long id)
    {
        return inspectFormworkMapper.deleteInspectFormworkById(id);
    }
}
